package com.mc.book.enums;

public enum ResponseEnum {
    ram(0,"内部判断专用"),
    success(200,"接口调用成功"),
    fail(199,"接口调用失败"),
    data_format_fail(1,"调用参数不正确"),
    validateCode_fail(2,"验证码不正确"),
    REQUEST_ENTRY_MISSING(5,"参数缺失"),
    NO_MONEY(6,"余额不足"),
    UP_SYSTEM_FAILURE(9,"未知错误"),
    // 书籍错误1XXXXXX
    BOOK_HAVA(100000,"书籍已存在"),
    BOOK_NULL(100001,"书籍不存在"),
    USER_HAVE(100002,"用户已存在"),
    USER_NO_HAVE(100003,"用户不存在"),
    USER_PASS_ERROR(100004,"密码错误"),

    // AI错误2XXXXXX
    AI_ERROR(200001,"识别失败！"),

    ;

    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


}
